package com.eportal.ORM;

/**
 * WtCardAccountInfoId entity. @author MyEclipse Persistence Tools
 */

public class WtCardAccountInfoId implements java.io.Serializable {

	// Fields

	private String rcvCdno;
	private String rcvTerm;

	// Constructors

	/** default constructor */
	public WtCardAccountInfoId() {
	}

	/** full constructor */
	public WtCardAccountInfoId(String rcvCdno, String rcvTerm) {
		this.rcvCdno = rcvCdno;
		this.rcvTerm = rcvTerm;
	}

	// Property accessors

	public String getRcvCdno() {
		return this.rcvCdno;
	}

	public void setRcvCdno(String rcvCdno) {
		this.rcvCdno = rcvCdno;
	}

	public String getRcvTerm() {
		return this.rcvTerm;
	}

	public void setRcvTerm(String rcvTerm) {
		this.rcvTerm = rcvTerm;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtCardAccountInfoId))
			return false;
		WtCardAccountInfoId castOther = (WtCardAccountInfoId) other;

		return ((this.getRcvCdno() == castOther.getRcvCdno()) || (this
				.getRcvCdno() != null
				&& castOther.getRcvCdno() != null && this.getRcvCdno().equals(
				castOther.getRcvCdno())))
				&& ((this.getRcvTerm() == castOther.getRcvTerm()) || (this
						.getRcvTerm() != null
						&& castOther.getRcvTerm() != null && this.getRcvTerm()
						.equals(castOther.getRcvTerm())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getRcvCdno() == null ? 0 : this.getRcvCdno().hashCode());
		result = 37 * result
				+ (getRcvTerm() == null ? 0 : this.getRcvTerm().hashCode());
		return result;
	}

}